//
//  PHJHomeViewController.swift
//  新浪微博
//
//  Created by jie peng on 16/5/19.
//  Copyright © 2016年 jie peng. All rights reserved.
//

import UIKit

class PHJHomeViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setNavBar()

    }
    private func setNavBar(){
    
        
        let item1 = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action:#selector(PHJHomeViewController.btnClick))
        
        navigationItem.rightBarButtonItem = item1
        
    }
 
    @objc private  func  btnClick(){
        let detail = PHJviewController()
        detail.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(detail, animated: true)
        
    }
}
